<?php
error_reporting(0);
define('IN_QY',true);
session_start();
require("include/common.inc.php");
define('SCRIPT','ad_list');
if(!$_COOKIE['userid']){
      echo "<script type='text/javascript'>location.href='/wap/mlogin.php';</script>";
      exit;
}
$sqld = "select * from tbl_address where userid='".$_COOKIE['userid']."' AND moren='1'";
$queryd=mysql_query($sqld);
$rowd=mysql_fetch_array($queryd);
$order_id = $_COOKIE['dindanid'];
//

$sql_qin = "select identify_pic from tbl_qinguan WHERE user_id = ".$_COOKIE['userid']." limit 1";
$res_qin=mysql_query($sql_qin);
$row_reslut1=mysql_fetch_array($res_qin);

$sqlfee = "select sum(gprice*gnum) as totfee from tbl_taorder where orderid='".$order_id."'";
$queryfee = mysql_query($sqlfee);
$rowfee5 = mysql_fetch_array($queryfee);

$sqlvip = "select sum(vip_good_price*gnum) as totvip from tbl_taorder where vip_good_price!=0.00 and orderid='".$order_id."'";
$queryvip = mysql_query($sqlvip);
$rowfee6 = mysql_fetch_array($queryvip);
//
$sqlvip7 = "select sum(gprice*gnum) as totvip7 from tbl_taorder where vip_good_price=0.00 and orderid='".$order_id."'";
$queryvip7 = mysql_query($sqlvip7);
$rowfee7 = mysql_fetch_array($queryvip7);

$gsccjvip=$rowfee7['totvip7'] + $rowfee6['totvip'];

//计算可用余额

$sql1 = "select sum(yuee+cash_back) as keyong from tbl_user where id = '".$_COOKIE['userid']."'";
$query1= mysql_query($sql1);
$row1 = mysql_fetch_array($query1);

$sql2 = "select money from tbl_tenred where uid = '".$_COOKIE['userid']."'";
$query2= mysql_query($sql2);
$row2 = mysql_fetch_array($query2);

$kymoney=$row1['keyong']+$row2['money'];

//



$sqlprice = "select sum(expresstri) as totprice from tbl_taorder where orderid='".$order_id."'";
$queryprice = mysql_query($sqlprice);
$rowprice = mysql_fetch_array($queryprice);
?>
<?php
$sql = "select sum(totprice) as goods_total_money, sum(totprice+expresstri) as totfee,sum(expresstri) as totexp from tbl_taorder where orderid='" . $order_id . "'";
$query = mysql_query($sql);
$rowfee1 = mysql_fetch_array($query);

                $sql = "select sum(totprice+expresstri) as totfee,sum(expresstri) as totexp from tbl_taorder where orderid='" . $order_id . "'";
                $query = mysql_query($sql);
                $rowfee = mysql_fetch_array($query);



				
?>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>购物车多件提交订单-众晒网</title>
    <link rel="stylesheet" type="text/css" href="/ui/css/Hui.css" />
    <script type="text/javascript" src="/ui/layer/mobile/layer.js"></script>   
    <style type="text/css">
        #header{width:100%; height:44px; position:fixed; top:0;z-index:999;}
		<!----
        #footer{width:100%; height:55px; position:absolute; bottom:0;}
		----->
        #lis{width:100%; overflow: auto; position:absolute; margin-top:44px;bottom:55px;}	
    </style>
<style>
 .one{background:#fff;}
.two{background:#586a79;color:#fff;font-weight:bold;}
.sdddq {
	font-family: "宋体";
	font-size: 20px;
	height: 30px;
	width: 150px;
	
	 
}
.lhj {
	font-family: "宋体";
	font-size: 60px;
	height: 100px;
	width: 350px;
	line-height: 100px;
	text-align: center;
	float:right;
}

.sssd {
	border-left-width: 1px;
	border-left-style: solid;
	border-left-color: #ffa977;

	text-align: center;
}
.bgColor{
 	filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#22000000', EndColorStr='#33FFFFFF'); 
	background-image: linear-gradient(to top, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.2) 80%, rgba(0, 0, 0, 0.4) 100%, #FFFFFF 100%); 
}
.bgColor1{
 	filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#22FFFFFF', EndColorStr='#33000000'); 
	background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.2) 80%, rgba(0, 0, 0, 0.4) 100%, #FFFFFF 100%); 
}
        
            
       
         
        li:hover {
background: #586a79;
    color: #fff;
    font-weight: bold;
        }
        .jiage{
            margin-right:15px;
            margin-top: -35px;
            color: #ffa200;
            font-size: 14px;
            float: right;
        }
        .H-theme-font-color-999 {
            font-size: 12px;
        }
        #ull{
            margin:0 auto;
        }
        li{
            border: 1px solid #bdbdbd;
            border-radius: 10px;
        }
        .toubu{
            margin-left:10%;
            color: #ffc821;
            font-size: 18px;
            
        }
        button.H-button.H-width-100-percent.H-font-size-18.H-outline-none.H-padding-vertical-both-7.H-padding-horizontal-both-17.H-theme-background-color8.H-theme-font-color-white.H-theme-border-color8.H-theme-border-color8-click.H-theme-background-color8-click.H-theme-font-color8-click.H-border-radius-3{
            width: 90%;
            float: right;
            height: 40px;
            margin-bottom: 5px;
            margin-left: 17px;
            border-radius: 25px;
            box-shadow: 3px 4px 5px #bfbfbf;
            background: -webkit-linear-gradient(left, #f2d9a1, #f6e6c2);
            border: 0;
            color: #000000;
            font-size: 16px;
            font-weight: 600;
            line-height: 16px;
        }
        li {
            list-style: none;
        }
        span {
            margin-left: 9px;
        }
        
        
        
</style>	
</head>
<body >
    <header class="H-header H-theme-background-color-white" id="header">
        <span tapmode="" id="guanbi" class="H-icon H-position-relative H-display-inline-block H-float-left H-vertical-middle H-theme-font-color-gray H-padding-horizontal-left-5 H-z-index-100"><i class="H-iconfont H-icon-arrow-left H-font-size-18 H-vertical-middle"style="color: #333;"></i></span>
        <div class="H-header-title H-center-all H-font-size-18 H-text-show-row-1 H-theme-font-color-333 H-position-absolute H-width-100-percent" style="color: #333;background-image: url(/haigou/ui/img/haigoutop.png);no-repeat;background-size: 100%  100%;">提交订单</div>		
    </header> 
    <div id="lis"  class="H-padding-8" style="width:95%;margin-top:44px;">
            <div onclick="address1()" class="H-flexbox-horizontal H-theme-background-color-white H-border-vertical-bottom-after H-margin-vertical-bottom-5">
                <div class="H-flex-item H-padding-10">
                    <i class="H-iconfont H-icon-where H-font-size-23 H-vertical-middle"  style="position:absolute;"></i>
                    <strong style="width:50%;margin-left:20px" class="H-font-weight-normal font-weight-500 H-font-size-12 H-theme-font-color-black H-display-block H-text-show-row-1">收货人：<?php echo $rowd['name'] ?></strong>
                    <span style="position:absolute;top:6px;right:40px"><?php echo $rowd['tell'] ?></span>
                    <div class="H-font-size-10 H-theme-font-color-999 H-text-show-row-2" style="margin-left:20px">
                        <span class="H-font-size-12">收货地址：<span id="dz"><?php echo $rowd['dizhi'] ?></span></span>
                    </div>
                    <span style="float:right;position:absolute;top:15px;right:3px"><i class="H-iconfont H-icon-arrow-right H-font-size-17 H-vertical-middle"></i></span>
                </div>

            </div> 
    <!---海购----->			


	                        <?php
                        // 海购
                        $sql = "select t1.*,t2.chtitle,t2.img,t2.unit,t2.origin,t2.ggid,t2.hotlevel from tbl_taorder t1 LEFT join tbl_taospp t2 on t1.goodid=t2.id where t1.is_pay = 0 AND t2.goodstype=1 AND t1.orderid='" . $order_id . "'";
                        $querytao = mysql_query($sql);
						
						        if(mysql_affected_rows()){
            echo '
	<div class="H-channel-title H-flexbox-horizontal H-theme-background-color-white H-vertical-middle H-border-vertical-bottom-after">
        <div class="H-channel-line H-theme-background-color-black H-padding-vertical-top-15 H-padding-horizontal-left-3  H-margin-horizontal-left-10"></div>
        <div class="H-channel-text H-theme-font-color-black H-flex-item H-font-size-18 H-theme-font-color-black H-padding-10 H-margin-horizontal-right-10 H-text-show-row-1">安心·海Go</div>
    </div>
	

            ';
} 
						
						
                        while ($row = mysql_fetch_array($querytao)) {
        				if($row['bunit']<1){
		              $temp = $row['img'];
              $imgarr = explode(",", $temp);			
				} else
				{
					
			$sqlimg="SELECT sku_pic FROM tbl_goods_sku WHERE id= '".$row['bunit']."'";
			$rowimg= mysql_query($sqlimg);
			$rowall=mysql_fetch_array($rowimg);
			$imgarr =explode(",", $rowall['sku_pic']);

				
				}
				//
            $sqltax8 = "select sum(gprice*gnum) as totvip8 from tbl_taorder t1 LEFT join tbl_taospp t2 on t1.goodid=t2.id where t1.is_pay = 0 AND t2.goodstype=1 AND t1.orderid='" . $order_id . "'";
			$querytax8= mysql_query($sqltax8);
			$rowtax8=mysql_fetch_array($querytax8);
			//
						
                        $order_hotlevel_arr = '';
                        if ($row['hotlevel'] != 0) {
                            $order_hotlevel_arr[] = $row['hotlevel'];
                        }
                        ?>		
		    <!---海购----->		
	    <!---海购----->	
			        <div id="list1" class="H-border-radius3-px H-theme-background-color-white H-margin-vertical-bottom-5 H-border-vertical-both-after H-border-horizontal-both-after">
            <div class="H-padding-10 H-border-vertical-bottom-after H-flexbox-horizontal H-theme-font-color-999 H-font-size-14 H-flexbox-horizontal H-text-horizontal-left H-box-sizing-border-box">
                <span class="H-display-block H-flex-item H-text-align-left"><?=date('Y-m-d H:i:s', $row['addtime'])?></span>
                <span class="H-display-block H-flex-item H-text-align-right H-theme-font-color7-active"><span class="H-badge H-display-inline-block"> <label class="H-display-inline-block H-vertical-middle H-theme-background-color-999 H-theme-font-color-white H-font-size-12" id="price">
				<?=$row['gnum']?>	
				</label> </span> 
				<span class="H-badge H-display-inline-block"> <label class="H-display-inline-block H-vertical-middle H-theme-background-color2 H-theme-font-color-white H-font-size-12" id="oldtype"><?=$row['gprice']?></label> </span>
				
			
				</span>
            </div>
            <div class="H-flexbox-horizontal H-theme-background-color-white H-border-vertical-bottom-after">
                <div class="H-padding-vertical-both-10">
                    <img src="<?=$imgarr[0]?>" srcs="" alt="" title="" class="imgCache H-display-block H-margin-horizontal-left-10" style="width: 60px; height: 60px;" />
                </div>
                <div class="H-flex-item H-padding-10">
                    <strong class="H-font-weight-normal font-weight-500 H-font-size-16 H-display-block H-text-show-row-1"><?=$row['chtitle']?></strong>
                    <div class="H-font-size-12 H-theme-font-color-999 H-text-show-row-1" style="margin-top: 5px;">
                     产地: <?=$row['origin']?>
                    </div>
					
				<span class="H-badge H-display-inline-block"> <label class="H-display-inline-block H-vertical-middle H-theme-background-color8 H-theme-font-color-white H-font-size-12" >会员价:<?=$row['vip_good_price']?></label> </span>						
					
	<!--------				 
					 <span class="H-badge H-display-inline-block" style="float:right" onclick="deltj(<?=$row['id']?>)"> <label class="H-display-inline-block H-vertical-middle H-theme-background-color8 H-theme-font-color-white H-font-size-12" id="oldtype">删除</label> </span>
	------->				 
                    </div>
	
                </div>
				
            </div>
        </div>
              <input type="hidden" name="spid" id="spid" value="<?=$row['orderid']?>">	

              <input type="hidden" name="spid" id="taxmoney" value="<?=$rowtax8['totvip8']?>">	



        


		  
			   <?php } ?>
        <!---海购----->	
		

	    <!---母婴----->		   

          <?php 
            $sql = "select t1.*,t2.chtitle,t2.img,t2.unit,t2.origin,t2.ggid,t2.ggunit,t2.hotlevel from tbl_taorder t1 LEFT join tbl_taospp t2 on t1.goodid=t2.id where t1.is_pay = 0 AND t2.goodstype=2 AND t1.orderid='" . $order_id . "'";
            $query=mysql_query($sql);
									        if(mysql_affected_rows()){
            echo '
	<div class="H-channel-title H-flexbox-horizontal H-theme-background-color-white H-vertical-middle H-border-vertical-bottom-after">
        <div class="H-channel-line H-theme-background-color-black H-padding-vertical-top-15 H-padding-horizontal-left-3  H-margin-horizontal-left-10"></div>
        <div class="H-channel-text H-theme-font-color-black H-flex-item H-font-size-18 H-theme-font-color-black H-padding-10 H-margin-horizontal-right-10 H-text-show-row-1">母婴商品</div>
    </div>
            ';
} 
            while ($row=mysql_fetch_array($query)) {
				
				if($row['bunit']<1){
		              $temp = $row['img'];
              $imgarr = explode(",", $temp);			
				} else
				{
					
			$sqlimg="SELECT sku_pic FROM tbl_goods_sku WHERE id= '".$row['bunit']."'";
			$rowimg= mysql_query($sqlimg);
			$rowall=mysql_fetch_array($rowimg);
			$imgarr =explode(",", $rowall['sku_pic']);

				
				}
  
           ?>
        <!---母婴----->    
		<div class="H-padding-vertical-top-5" style="background-color: #FFC107;"></div>

        <div id="list1" class="H-border-radius3-px H-theme-background-color-white H-margin-vertical-bottom-5 H-border-vertical-both-after H-border-horizontal-both-after">
            <div class="H-padding-10 H-border-vertical-bottom-after H-flexbox-horizontal H-theme-font-color-999 H-font-size-14 H-flexbox-horizontal H-text-horizontal-left H-box-sizing-border-box">
                <span class="H-display-block H-flex-item H-text-align-left"><?=date('Y-m-d', $row['addtime'])?></span>
                <span class="H-display-block H-flex-item H-text-align-right H-theme-font-color7-active"><span class="H-badge H-display-inline-block"> <label class="H-display-inline-block H-vertical-middle H-theme-background-color-999 H-theme-font-color-white H-font-size-12" id="price">
				<?=$row['gnum']?>
			
				</label> </span> <span class="H-badge H-display-inline-block"> <label class="H-display-inline-block H-vertical-middle H-theme-background-color2 H-theme-font-color-white H-font-size-12" id="oldtype"><?=$row['gprice']?></label> </span> </span>
            </div>
            <div class="H-flexbox-horizontal H-theme-background-color-white H-border-vertical-bottom-after">
                <div class="H-padding-vertical-both-10">
                    <img src="<?=$imgarr[0]?>" srcs="" alt="" title="" class="imgCache H-display-block H-margin-horizontal-left-10" style="width: 60px; height: 60px;" />
                </div>
                <div class="H-flex-item H-padding-10">
                    <strong class="H-font-weight-normal font-weight-500 H-font-size-16 H-display-block H-text-show-row-1"><?=$row['chtitle']?></strong>
                    <div class="H-font-size-12 H-theme-font-color-999 H-text-show-row-1">
                     产地: <?=$row['origin']?>
                    </div>
	<!--------						
                    <div class="H-font-size-12 H-theme-font-color-999 H-text-show-row-2">
                    规格: <?=$row['ggid']?>
			 
					 <span class="H-badge H-display-inline-block" style="float:right" onclick="deltj(<?=$row['id']?>)"> <label class="H-display-inline-block H-vertical-middle H-theme-background-color8 H-theme-font-color-white H-font-size-12" id="oldtype">删除</label> </span>
	------->				 
                    </div>
	
                </div>
				
            </div>
        </div>
              <input type="hidden" name="spid" id="spid" value="<?=$row['orderid']?>">
         <?php } ?>  

	
    <!---闲置----->
          <?php 
            $sql = "select t1.*,t2.chtitle,t2.img,t2.unit,t2.origin,t2.ggid,t2.ggunit,t2.hotlevel from tbl_taorder t1 LEFT join tbl_taospp t2 on t1.goodid=t2.id where t1.is_pay = 0 AND t2.goodstype=3 AND t1.orderid='" . $order_id . "'";
            $query=mysql_query($sql);
									        if(mysql_affected_rows()){
            echo '
	<div class="H-channel-title H-flexbox-horizontal H-theme-background-color-white H-vertical-middle H-border-vertical-bottom-after">
        <div class="H-channel-line H-theme-background-color-black H-padding-vertical-top-15 H-padding-horizontal-left-3  H-margin-horizontal-left-10"></div>
        <div class="H-channel-text H-theme-font-color-black H-flex-item H-font-size-18 H-theme-font-color-black H-padding-10 H-margin-horizontal-right-10 H-text-show-row-1">闲置商品</div>
    </div>
            ';
} 
            while ($row=mysql_fetch_array($query)) {
              $temp = $row['img'];
              $imgarr = explode(",", $temp);
           ?>
        	    <!---闲置商品------->		   
			<div class="H-padding-vertical-top-5" style="background-color: #FFC107;"></div>

        <div id="list1" class="H-border-radius3-px H-theme-background-color-white H-margin-vertical-bottom-5 H-border-vertical-both-after H-border-horizontal-both-after">
            <div class="H-padding-10 H-border-vertical-bottom-after H-flexbox-horizontal H-theme-font-color-999 H-font-size-14 H-flexbox-horizontal H-text-horizontal-left H-box-sizing-border-box">
                <span class="H-display-block H-flex-item H-text-align-left"><?=date('Y-m-d H:i:s', $row['addtime'])?></span>
                <span class="H-display-block H-flex-item H-text-align-right H-theme-font-color7-active"><span class="H-badge H-display-inline-block"> <label class="H-display-inline-block H-vertical-middle H-theme-background-color-999 H-theme-font-color-white H-font-size-12" id="price">
				<?=$row['gnum']?>

				</label> </span> <span class="H-badge H-display-inline-block"> <label class="H-display-inline-block H-vertical-middle H-theme-background-color2 H-theme-font-color-white H-font-size-12" id="oldtype"><?=$row['gprice']?></label> </span> </span>
            </div>
            <div class="H-flexbox-horizontal H-theme-background-color-white H-border-vertical-bottom-after">
                <div class="H-padding-vertical-both-10">
                    <img src="<?=$imgarr[0]?>" srcs="" alt="" title="" class="imgCache H-display-block H-margin-horizontal-left-10" style="width: 60px; height: 60px;" />
                </div>
                <div class="H-flex-item H-padding-10">
                    <strong class="H-font-weight-normal font-weight-500 H-font-size-16 H-display-block H-text-show-row-1"><?=$row['chtitle']?></strong>
	<!--------						
                    <div class="H-font-size-12 H-theme-font-color-999 H-text-show-row-1">
                     产地: <?=$row['origin']?>
                    </div>
                    <div class="H-font-size-12 H-theme-font-color-999 H-text-show-row-2">
                    规格: <?=$row['ggid']?>
			 
					 <span class="H-badge H-display-inline-block" style="float:right" onclick="deltj(<?=$row['id']?>)"> <label class="H-display-inline-block H-vertical-middle H-theme-background-color8 H-theme-font-color-white H-font-size-12" id="oldtype">删除</label> </span>
	------->				 
                    </div>
	
                </div>
				
            </div>
        </div>
              <input type="hidden" name="spid" id="spid" value="<?=$row['orderid']?>">
         <?php } ?>  



<!-- 闲置商品-->


		 
<!-- 商品列表-->
        
		
        <input type="hidden" name="hjj" id="hjj" value="<?=$row['totfee']?>">

   
	
	
              <div id="gsvip" class="H-accordion-area" style="padding-bottom: 15px; background: #ffffff;padding-top: 10px;">
            
                <ul style="width:90%"  id="ull">
                	 <span class="toubu">————G.S尊享会员————</span>
					 
					 
					 
		<?php	  
        $sql2 = "select * from tbl_taospp  where (goodstype>3 and goodstype<8)  AND vip_stage=1 order by id asc ";
        $query2=mysql_query($sql2);
		while ($row2=mysql_fetch_array($query2)) {     
    ?> 
					 
                    <li  value="<?=$row2['id']?>+<?=$row2['zswprice']?>" style="margin-top: 10px;" >
                      <span><?=$row2['chtitle']?></span><br/>
					  <span class="H-theme-font-color-999  "><?=$row2['enbrand']?></span><br/>
					  <span class="jiage">￥:<?=$row2['zswprice']?></span>
                    </li>
	  <?php } ?>		

                    <li class="one" value="" style="margin-top: 10px; padding: 10px;" style="text-align: center;" >
                      
                      <span  style="text-align: center; margin-left:30%; margin-top:20px;">我不需要开通vip</span>
                      
					  
					
                    </li>

	  
				   
                </ul> 
				
	           <input type="hidden" name="yue" id="yue" >
	           <input type="hidden" name="yueid" id="yueid" >	              
	           <input type="hidden" name="is_vip" id="is_vip" value="0" >	
    
            </div>
			
			
			
			
		      <div class="H-padding-vertical-bottom-10"></div>
            
			    <div id="ifvip" class="H-channel-title H-flexbox-horizontal H-theme-background-color-white H-vertical-middle H-border-vertical-bottom-after">
             <div class="H-channel-text H-theme-font-color8 H-flex-item H-font-size-18 H-theme-font-color-black H-padding-10 H-margin-horizontal-right-10 H-text-show-row-1" style="text-align: center;">您当前是G.S会员</div>
              </div>
         
             <div class="H-padding-10 H-border-vertical-bottom-after  H-theme-background-color-white H-flexbox-horizontal H-theme-font-color-999 H-font-size-14 H-flexbox-horizontal H-text-horizontal-left H-box-sizing-border-box" >               
            <span class="H-display-block H-flex-item H-theme-font-color-black-active">
			<span>小计:</span> 
			<span id="xiaoji" style="float:right;color:#EE7942;"></span> 			
			<br/>
			
			<div id="ifvipdj" style="display: none;">
			<span>vip会员费:</span> <span id="ifvipdjl" style="float:right;color:#EE7942;"></span> <br/>
			
			</div>
			<span>运费:</span> <span id="yf" style="float:right;color:#EE7942;"></span> <br/>				
            <span>抵扣可用余额:</span> <span id="dikou" style="float:right;color:#EE7942;"><?php echo $kymoney ?></span> <br/>	
            <span>合计:</span> <span id="hj" style="float:right;color:#EE7942;"></span> <br/>			
						
            </span>
            </div>
 
        <div class="H-padding-vertical-bottom-10"></div>

		
			<?php if(!$row_reslut1){ ?>
        <div class="H-channel-title H-flexbox-horizontal H-theme-background-color-white H-vertical-middle H-border-vertical-bottom-after" style="background-color: #ef5c5c;">
             <div class="H-channel-text H-theme-font-color8 H-flex-item H-font-size-18 H-theme-font-color-black H-padding-10 H-margin-horizontal-right-10 H-text-show-row-1" style="text-align: left; display: block; font-size: 12px;color: #ffffff; height: 75px;">海关提示：订单中有境外商品，付款后请补充收件人的清关信息（个人中心—我的订单—待收货 页面上传身份证），否则商品无法清关发货。</div>
        </div>
			  
			     <?php } ?> 

        <button tapmode="" style="margin-top: 10px;"   class="H-button H-width-100-percent  H-font-size-12 H-outline-none H-padding-vertical-both-12 H-padding-horizontal-both-20 H-theme-background-color8 H-theme-font-color-white H-theme-border-color8 H-theme-border-color8-click H-theme-background-color8-click H-theme-font-color8-click H-border-radius-3" onclick="H.swiperShare('.show-services','.zp-menu','space');">提交订单</button>
 
 
 

    <div class="H-padding-vertical-bottom-90"></div>
<!-----------
    <div class="H-flexbox-horizontal H-border-vertical-both-after">
        <span class="H-vertical-middle H-padding-horizontal-left-10 H-theme-background-color-white H-font-size-16">输入密码：</span><input id="password" type="password" class="H-textbox H-vertical-align-middle H-vertical-middle H-font-size-16 H-flex-item H-box-sizing-border-box H-border-none H-outline-none H-padding-12" placeholder="输入登录众晒网的密码" />
    </div>
			
------------->
        <div class="show-services H-flexbox-vertical H-display-none-important H-position-fixed H-width-100-percent H-height-100-percent H-z-index-1000000 H-horizontal-left-0 H-vertical-bottom-0 H-horizontal-right-0">
        <div class="space H-flex-item"></div>
        <div class="zp-menu H-theme-background-color-white">
            <div class="H-padding-vertical-both-15 H-text-align-center H-font-size-16" style="color: coral;">
                请确认订单
            </div>
            <div class="H-flexbox-horizontal H-padding-vertical-bottom-10 H-font-size-14 H-border-vertical-bottom-margin-both-10-after" style="text-align:center">
             		  
                <div class="H-flex-item H-flexbox-vertical">
		
                    <span class="H-margin-vertical-both-5 H-theme-font-color-333 "> 
					<i class="H-iconfont  H-icon-money2 H-font-size-22 H-theme-font-color7 "></i>&nbsp;<span id="hj1" style="color:red;font-size:23px;">请选择类别</span></span>
                </div>
            </div>
          <div class="H-flex-item H-center-all H-text-align-center H-theme-font-color-999 H-touch-active swipe-item" style="  margin-top: 13px;">
		   <button tapmode="" onclick="H.swiperShare('.show-services', '.zp-menu', 'space');" class="H-button H-font-size-12 H-outline-none H-padding-vertical-both-8 H-padding-horizontal-both-20 H-theme-background-color8 H-theme-font-color-white H-theme-border-color8 H-theme-border-color8-click H-theme-background-color8-click H-theme-font-color8-click H-border-radius-3" style="border-radius:19px;background-color: #e6d720;border: 1px solid #e6d720;">
		  我在想想</button>
		  
		 <button  type="submit" id="tj" class="H-button H-font-size-12 H-outline-none H-padding-vertical-both-8 H-padding-horizontal-both-20 H-theme-background-color7 H-theme-font-color-white H-theme-border-color7 H-theme-border-color7-click H-theme-background-color7-click H-theme-font-color7-click H-border-radius-3" style="border-radius:19px;background-color: #fba16d;border: 1px solid #fba16d;">确定提交</button>
        </div>  &nbsp;
        </div>
    </div>	      


				

       
    </div>
	 <script type="text/javascript" src="/ui/script/H.js"></script>
    <script type="text/javascript" src="/ui/js/jquery-1.9.1.min.js"></script>
	<script type="text/javascript" src="ui/js/indexjs.js"></script>	
   	    <script>
	///是否会员
var uid="<?php echo $_COOKIE['userid'] ?>";
var vip_price="<?=$gsccjvip?>";
var pt_price="<?=$rowfee5['totfee']?>";
var order_id="<?php echo $order_id?>";
	    $.ajax({
        url: '/wap/vip_time.php',
        type: 'GET',
        dataType: 'json',
		data:{
			uid:uid
		},
      })
      .done(function(respon) {
        if (respon.code==0) {

        $("#gsvip").css("display","none");
        $("#xiaoji").html(vip_price);	
        $("#ifvip").css("display","black");	
        $("#is_vip").val('1');	
        jiazai();		
	    console.log('yes');

      
        }else{
    	console.log('no');        
        $("#gsvip").css("display","block");
        $("#ifvip").css("display","none");		
        $("#xiaoji").html(pt_price);
        $("#is_vip").val('0');		
        jiazai();		
        }
      })
	
	//获取运费
	
	    var delivery_money="";
	    $.ajax({
        url: '/api/muyin/api.php?s=haigou.show_order_commit',
        type: 'GET',
        dataType: 'json',
		async: false, 
        data: {uid:uid,
		order_id:order_id
		},
		
			success : function(data) {
			if (data.code==0) {

		 delivery_money=data.data.delivery_money;
		
		//console.log(respon.data.delivery_money);
      
        }else{
            
        
        }
			}

		
      });
		
	//结算	
console.log('<?php echo $order_id?>');
console.log(delivery_money);
function jiazai(){
			  		 
var k=delivery_money;//运费price	
var k1=	 parseFloat(k);
	 var di=document.getElementById('dikou').innerText;	
	 var q=document.getElementById('xiaoji').innerText;	
var q1=	 parseFloat(q);	 
	 var y=(q1+k1)-parseFloat(di);
	 var u=document.getElementById('yue').value;	
	 
console.log(di);
if(u!=""){
	y=y+ parseFloat(u);
	
	
}
 
console.log(u);	 
// if($("#taxxx").css("display")=='none'){//如果show是隐藏的
 // var h=y;
 // var s=0;
// }
// if($("#taxxx").css("display")=='block'){//如果show是隐藏的
 // var taxm=document.getElementById('taxmoney').value;
 // var taxmo=	 parseFloat(taxm);	
 // var h=((taxmo*(0.17))+y).toFixed(2);
 // var s=(taxmo*(0.17)).toFixed(2);
// }
if(h==undefined){
 var h=y;
 var s=0;
}

if(y<=0){
	
h=0.1;	
	
}
	$('#yf').text(k);
    $('#hj').text(h);
    $('#hj1').text(h);	
    $('#sui').text(s);			
};

    </script>	

	
	
	<script>
	//提交订单计算
    $('#tj').click(function(){    
        var z="<?php echo $rowd['dizhi'] ?>";
            if(z==''){
                alert ('请填写地址');
           address1();
		return false;
            }

        //var aa=document.getElementById('yhq1').value;
       // var ab=aa.split(';');
	   //var zyac=ab['1'];	//优惠券id
	    //var am=ab['0'];	//优惠券
       // var ca=document.getElementById('yhq_hot').value;        
       // var ccayhq=ca.split(';');		
	    //var amhot=ccayhq['0'];			
        //var ac=document.getElementById('yhq2').innerHTML;  		
		 var sbvipmoney=document.getElementById('yue').value;
		 var sbvipmoneyid=document.getElementById('yueid').value;		 
	    // var ah=document.getElementById('taxman').value;//人
 var spid=document.getElementById('spid').value;//人
	    // var ai=document.getElementById('taxconfig').value;	//纳税号
	    var aj=document.getElementById('hj1').innerHTML;	//合计
	    var ak=document.getElementById('yf').innerHTML;	//运费
	    var is_vip=document.getElementById('is_vip').value;			
	    var ap="<?php echo $_COOKIE['userid'] ?>";	
		var orderid="<?php echo $orderid ?>";
	    // var an=document.getElementById('sui').innerHTML;	//税费	
        var sbviptype="add";
        // if($("#taxxx").css("display")=='none'){//如果show是隐藏的
 
         // var ag=0;

          // }

         // if($("#taxxx").css("display")=='block'){//如果show是隐藏的
         // var ag=1;
         // }		

		 var dikouu=document.getElementById('dikou').innerHTML;//抵扣
		 
	 
	if(ag==undefined){
    var ag=0;
    }	 
	if(sbvipmoneyid==""||sbvipmoneyid=="0"){
		zouni()
		console.log('没有选择vip');
	} else{
		
	    $.ajax({  
        type:"POST",  
        url:"/api/muyin/api.php?s=haigou.add_vip_goods",    
        data:{
     uid:uid,
    order_id:order_id,
    vip_id:sbvipmoneyid,	
    type:sbviptype
		},   
        datatype: "json",             
     })

      .done(function(respon) {
	    console.log(respon.msg);  	  
		  
        if (respon.code=="0") {
		zouni()	
    console.log('添加vip成功');  
      
        }else{
        zouni()    
    console.log('添加vip失败');  
        }
      }) 	 
			
	}

//return false;		
 
 function zouni(){
    $.ajax({  
        type:"POST",  
        url:"dindandjtj.php",    
        data:{
    is_tax:ag,
	
	is_vip:is_vip,
    expresstri:ak
		},   
        datatype: "json",             
        success:function(data){  

        window.location.href='djfuqian.php'+'?fid='+spid; 
 
        }   
	
 
     }); 
	 
	} 
	 
   
	})
 
    </script>	

	
	<!----------------------
	<script>
function showdiv(){
 
if($("#taxxx").css("display")=='none'){//如果show是隐藏的
 
$("#taxxx").css("display","block");//show的display属性设置为block（显示）
 jiazai()
}else{//如果show是显示的
 
$("#taxxx").css("display","none");//show的display属性设置为none（隐藏）
 jiazai()
}
 
}
    </script>
----------------->
	<script>
	
$(function(){
         
     $("#gsvip li").click(function() {

        $(this).siblings('li').removeClass('two');  // 删除其他兄弟元素的样式

        $(this).addClass('two');  

			var a=$(this).attr("value");  
			var d=a.split('+');
            var b=d[1];
            var c=d[0];
		
		console.log(a);
if(a==""){
	            $(this).removeClass("two");
	$("#xiaoji").html(pt_price);	
    $("#ifvipdj").css("display","none");
	    $("#yue").val("0");
	    $("#yueid").val("0");	
				$("#is_vip").val("0");
		jiazai();
}else{
	
    $("#yue").val(b);  
    $("#yueid").val(c); 
	$("#ifvipdjl").html(b);
	$("#xiaoji").html(vip_price);	
    $("#ifvipdj").css("display","block");
			$("#is_vip").val("1");
	jiazai();	
}


    });
 
 
 
 
 
})
 
 
 
 
 
 
 
 
 
 
 
 
	
	</script>
<!-------------------------	
    <script>
        function gerenn()    
        {    
        var mychar = document.getElementById("taxman5").style.display ="block";  
        var mychar1 = document.getElementById("taxman6").style.display ="none";  
        var mychar2 = document.getElementById("taxman7").style.display ="none";   
        var mychar3 =   document.getElementById("gerenn").style.background=" #f0ad4e";
        var mychar4 =  document.getElementById("qiyee").style.background="white";        
        }    
        function qiyee()    
        {    
        var mychar = document.getElementById("taxman5").style.display ="none";  
        var mychar1 = document.getElementById("taxman6").style.display ="block";  
        var mychar2 = document.getElementById("taxman7").style.display ="block"; 
        var mychar3 =document.getElementById("qiyee").style.background=" #f0ad4e";
        var mychar4 = document.getElementById("gerenn").style.background="white";
        }
</script>
------------------------->
	<script>
		  $('#guanbi').on('click', function(){
    layer.open({
    content: '确定返回将清空订单？'
    ,btn: ['确定', '再看看']
    ,yes: function(index){
		
		
	    $.ajax({
        url: './deldindan.php',
        type: 'POST',
        dataType: 'json',
      })
      .done(function(respon) {
        if (respon.error==0) {

		             layer.open({
    content: '成功'
    ,skin: 'msg'
    ,time: 4 //2秒后自动关闭
  });
		
window.history.back();
      
        }else{
            
        
        }
      }) 
      layer.close(index);
    }
  });
  });
	</script>
	<script>
	function address1(){
//自定页
var pageii = layer.open({
  type: 1
  ,content: '<iframe src="myaddress1.php" width="100%" height="500px"  frameborder="1/0" name="mb" style="border:1px #FFC107 solid" scrolling=yes/no/auto>   </iframe> <br><a href="javascript:;"  style="color:white;background:#FF9800;padding:14px 37%;margin-left:5px;top:15px;position:relative" onclick="layer.closeAll()">我要关闭！！</a>'
  ,anim: 'up'
  ,end: function () {
   location.reload();
   }
  ,style: 'position:fixed; left:0; top:0; width:100%; height:100%; border: none; -webkit-animation-duration: .5s; animation-duration: .5s;'
});
//自定页
 
	
}	
	
	
	</script>

	
	<!------------
		<script type="text/javascript">
$(function () {  
  //防止页面后退  
  history.pushState(null, null, document.URL);  
  window.addEventListener('popstate', function () {  
  history.pushState(null, null, document.URL);  
   });  
        }) 
</script>	
	
--------------->

	
</body>
</html>